Widget = function(el){
	
		var _this = this ;
		
		this.el = el ;
		
		//添加按钮
		this.addButton=function(id,lable){
			var btn = $('<button type="button" class="btn btn-info">'+lable+'</button>');
			btn.css({'margin-right':'3px','margin-top':'3px','padding':'0 5px'});
			btn.appendTo(el.find(".pull-left"));
			return btn;
		};
		
		//添加标题
		this.addTitle=function(title){
			el.find(".pull-left").empty().append("<font style='font-weight: bold;'>" + title + "</font>");
		};
		
		//设置样式
		this.addClass = function(className){
			this.addClass(className);
		};
};